![]() |
DMNewDisplay |
||||
Header: | Displays.h | Carbon status: | Supported | |
Adds a video device to the device list and makes the device active.
OSErr DMNewDisplay ( GDHandle *newDevice, SInt16 driverRefNum, UInt32 mode, UInt32 reserved, DisplayIDType displayID, Component displayComponent, Handle displayState );
A pointer to a handle to a GDevice structure for the video device that you want to add to the device list.
The reference number of the video device which you are adding to the device list. This information is usually set at system startup. The function
The depth mode. Used by the video device driver, this value sets the pixel depth and specifies color. The function
Reserved for future expansion. Pass NULL in this parameter.
A unique identification for the display. For new displays, supply this parameter with the value 0, which causes the Display Manager to generate a unique display ID for this device. If this display was removed, then pass the display ID of the current display in this parameter.
Reserved for future expansion. Pass NULL in this parameter.
If your application called
A result code.
Because this function may move or purge memory blocks or access handles, you cannot call it at interrupt time.
Generally, your application should not use this function, but should instead allow system software to maintain the device list. This function is described here for completeness only.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.5 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.5 and later.
© 2000 Apple Computer, Inc. — (Last Updated 3/8/2000)